<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="../common/jstl.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>类别列表</title>
<%@include file="../common/css-js.jsp" %>
</head>
<body>
	<div class="am-container-fluid">
		<div class="admin-content">
			<!-- iframe start -->
			<div class="admin-content-body">
				 <div class="am-cf am-padding am-padding-bottom-1">
				      <div class="am-fl am-cf">
				        <strong class="am-text-primary am-text-lg">首页</strong> /
				         <small>类别列表</small>
				      </div>
				  </div>
				
				
				<div class="am-panel am-panel-default">
				  <div class="am-panel-hd">
				  	<a href="${path }/admin/cmscategory/toAdd" class="am-btn am-btn-secondary">添加顶级类别</a>
				  </div>
				  <div class="am-panel-bd">
			<table class="am-table am-table-striped am-table-hover table-main">
              <thead>
              <tr>
               <!--  <th class="table-check"><input type="checkbox" /></th><th class="table-id">ID</th> -->
                <th class="table-title">编号</th>
                <th class="table-title">类别名称</th>
                <th class="table-author">状态</th>
                <th class="table-date">创建日期</th>
                <th class="table-set">操作</th>
              </tr>
              </thead>
              <tbody>
              <c:forEach items="${page.list }" var="cate" varStatus="status">
              	<tr>
                <td>${status.index+1 }</td>
                <td>${cate.catName }</a></td>
                <td >
                	<c:if test="${cate.state =='0'}">
                		正常
                	</c:if>
                	<c:if test="${cate.state =='1'}">
                		禁用
                	</c:if>
                </td>
                <td >${cate.createTime }</td>
                <td>
                  <div class="am-btn-toolbar">
                    <div class="am-btn-group am-btn-group-xs">
                      <a class="am-btn am-btn-default am-btn-xs am-text-secondary" href="${path }/admin/cmscategory/toChildList?catId=${cate.catId }"><span class="am-icon-th"></span> 子类别管理</a>
                      <a class="am-btn am-btn-default am-btn-xs am-text-secondary" href="${path }/admin/cmscategory/toEdit?catId=${cate.catId }"><span class="am-icon-pencil-square-o"></span> 编辑</a>
                      <a class="am-btn am-btn-default am-btn-xs am-text-danger" href="${path }/admin/cmscategory/delete?catId=${cate.catId }"><span class="am-icon-trash-o"></span> 删除</a>
                    </div>
                  </div>
                </td>
              </tr>
              </c:forEach>
              </tbody>
            </table>
            <div class="am-cf">
             	 共 ${page.totalRow }条记录
              <div class="am-fr">
                <ul class="am-pagination">
                  <li class="am-disabled"><a href="#">«</a></li>
                  <li class="am-active"><a href="#">1</a></li>
                  <li><a href="#">2</a></li>
                  <li><a href="#">3</a></li>
                  <li><a href="#">4</a></li>
                  <li><a href="#">5</a></li>
                  <li><a href="#">»</a></li>
                </ul>
              </div>
            </div>
				  </div>
				</div>
				

			
			</div>
		</div>
	</div>
</body>
</html>